From 84c4a1f62b0505026e9846bf707ba3de15109834 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Wed, 28 May 2014 09:51:46 +0200 Subject: [PATCH] common/domain: do not rely on the assumption that guest_type_pv has the value 0 Signed-off-by: Andrew Cooper --- xen/common/domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/domain.c b/xen/common/domain.c index dc1813915d..bc57174ba1 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -286,6 +286,8 @@ struct domain *domain_create( d->guest_type = guest_type_hvm; else if ( domcr_flags & DOMCRF_pvh ) d->guest_type = guest_type_pvh; + else + d->guest_type = guest_type_pv; if ( domid == 0 || domid == hardware_domid ) { -- 2.30.2